package com.apache.rpc.entity;

import com.apache.api.entity.BaseEntity;
import com.apache.tools.DateUtils;

@SuppressWarnings("serial")
public class InterfaceRegister extends BaseEntity {

	private String registerId;
	private String beanId;
	private String beanName;
	private String methodName;
	private String callType;
	private String flag;
	private String address;
	private String port;
	private Long timestampCreate;
	private String userIdCreate;
	private String reserve1;
	private String reserve2;

	private String createdTime;

	public String getCreatedTime() {
		if (null != timestampCreate) {
			createdTime = DateUtils.longToStr(timestampCreate.longValue(), DateUtils.FmtStr.CN_yyyyMMdd_HHmmss);
		}
		return createdTime;
	}

	public String getRegisterId() {
		return this.registerId;
	}

	public void setRegisterId(String registerId) {
		this.registerId = registerId;
	}

	public String getBeanId() {
		return this.beanId;
	}

	public void setBeanId(String beanId) {
		this.beanId = beanId;
	}

	public String getMethodName() {
		return this.methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public String getCallType() {
		return this.callType;
	}

	public void setCallType(String callType) {
		this.callType = callType;
	}

	public String getFlag() {
		return this.flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPort() {
		return this.port;
	}

	public void setPort(String port) {
		this.port = port;
	}

	public Long getTimestampCreate() {
		return this.timestampCreate;
	}

	public void setTimestampCreate(Long timestampCreate) {
		this.timestampCreate = timestampCreate;
	}

	public String getUserIdCreate() {
		return this.userIdCreate;
	}

	public void setUserIdCreate(String userIdCreate) {
		this.userIdCreate = userIdCreate;
	}

	public String getBeanName() {
		return beanName;
	}

	public void setBeanName(String beanName) {
		this.beanName = beanName;
	}

	public String getReserve1() {
		return reserve1;
	}

	public void setReserve1(String reserve1) {
		this.reserve1 = reserve1;
	}

	public String getReserve2() {
		return reserve2;
	}

	public void setReserve2(String reserve2) {
		this.reserve2 = reserve2;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("registerId=" + this.registerId + ";");
		sb.append("beanId=" + this.beanId + ";");
		sb.append("beanName=" + this.beanName + ";");
		sb.append("methodName=" + this.methodName + ";");
		sb.append("callType=" + this.callType + ";");
		sb.append("flag=" + this.flag + ";");
		sb.append("address=" + this.address + ";");
		sb.append("port=" + this.port + ";");
		sb.append("timestampCreate=" + this.timestampCreate + ";");
		sb.append("userIdCreate=" + this.userIdCreate + ";");
		sb.append("reserve1=" + this.reserve1 + ";");
		sb.append("reserve2=" + this.reserve2 + ";");

		return sb.toString();
	}

}
